package cn.com.ejiakanghu.form;

import org.linlinjava.litemall.db.domain.AgedmallSubscribeToInform;

import java.time.LocalDateTime;

/**
 * @author wj
 * @date 2022/1/4 13:56
 */
public class WeixinSubGoodsArrivedForm {

    private Long goodsId;

    private Long skuId;


    private String template_id;

    private String page;

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public String getTemplate_id() {
        return template_id;
    }

    public void setTemplate_id(String template_id) {
        this.template_id = template_id;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public WeixinSubGoodsArrivedForm(Long goodsId, Long skuId,String template_id, String page) {
        this.goodsId = goodsId;
        this.skuId = skuId;
        this.template_id = template_id;
        this.page = page;
    }


    public static AgedmallSubscribeToInform toSubscribeToInform(WeixinSubGoodsArrivedForm goodsArrivedForm) {
        AgedmallSubscribeToInform subscribe=new AgedmallSubscribeToInform();
        subscribe.setAddTime(LocalDateTime.now());
        subscribe.setGoodsId(goodsArrivedForm.getGoodsId());
        subscribe.setSkuId(goodsArrivedForm.getSkuId());
        subscribe.setPageUrl(goodsArrivedForm.getPage());
        subscribe.setSendFlag(0);
        subscribe.setPageUrl(goodsArrivedForm.getPage());
        subscribe.setTemplateId(goodsArrivedForm.getTemplate_id());
        return subscribe;
    }

    public WeixinSubGoodsArrivedForm() {
    }


}
